<!DOCTYPE html>
<html class="loginHtml" lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>二维码生成页面</title>
    <script src="https://cdn.bootcss.com/jquery/2.1.4/jquery.js"></script>
</head>
<body>
<div><button onclick="getimage()">Test QR Code</button></div>
<div id="imagediv"></div>
</body>
<script>
    function getimage() {
        $.ajax({
            url:"/sharepark/userInfo/share",
            type:"post",
            success:function (data) {
                var share_result = data.result;
                alert("你的专属链接为" + share_result.link);
                $("#imagediv").append("<img src='data:image/png;base64," + share_result.qrcode +"'>")
            }
        })
    }
</script>
</html>